// TennisBall类 和 main函数: 不完整程序

#include <iostream>
#include <string.h>
using namespace std;

enum TBallAge {
    TBallAge_new,
    TBallAge_so_so,
    TBallAge_flat,
    TBallAge_dead,
};

enum Surface {
    Surface_concrete,
    Surface_clay,
    Surface_grass,
};

class TennisBall {
private:
    double radius;
    double weight;
    double spin_rate;
    TBallAge age;

public:
    double CalcBounceHeight(double height, Surface type) { return 0.0; }
    void CalcNewSpinRate(Surface type) {}
    void CalcAge(int playedHours) {}

    void SetRadius(double r) { radius = r; }
    void SetWeight(double w) { weight = w; }
    void SetSpinRate(double sr) { spin_rate = sr; }
};

int main() {
    TennisBall ball;

    int playedHours = 5;
    ball.CalcAge(playedHours);

    ball.SetSpinRate(0.0);
    ball.SetRadius(1.5);
    ball.SetWeight(0.25);

    double height = ball.CalcBounceHeight(6.0, Surface_concrete);
    ball.CalcNewSpinRate(Surface_concrete);
}